<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>File Selector Example</title>
</head>
<body>
    <input type="file" id="fileInput" webkitdirectory directory multiple>
    <script>
        document.getElementById('fileInput').addEventListener('change', function(event) {
            const files = event.target.files;
            if (files.length > 0) {
                let s = Array.from(files).map(file =>
                     file.webkitRelativePath || file.name)
                     .join(', ');
                alert('Selected files: ' + s);
            } else {
                alert('No files selected.');
            }
        });
    </script>
</body>
</html>